#ifndef TIMER_H
#define TIMER_H

#include "hawthorn.h"

HAWTHORN_NAMESPACE_EBGIN
class HAWTHORN_EXPORT Timer
{
public:
	Timer(void);
	~Timer(void);

	void update();

	float getElapsed();

	char* describe();

private:
	LARGE_INTEGER _start;
	LARGE_INTEGER _now;
	LARGE_INTEGER _freq;
	double         _elapsed;
};

HAWTHORN_NAMESPACE_END
#endif    //  TIMER_H